package cn.cjp.day02;

public class Phone {

    String brand;
    double prince;
    String color;
    private boolean good;

    public void call(String who){
        System.out.println("打电话给"+who+"了");
    }

    public void setPrince(double a){
        //设置条件
        if(a>0) {
            prince=a;
        } else {
            System.out.println("错误输入");
        }
    }

    public double getPrince(){
        return prince;
    }

    //基本类型
    public void setGood(boolean a){
        good = a;
    }
    public boolean isGood(){
        return good;
    }

}
